home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / setiq.xml < prev    next >
Text File  |  2002-09-13  |  6KB  |  145 lines

  1.  <search function="setiq">
  2.    <name>Setiqueue</name>
  3.    <description>
  4.       Directly login as an admin to your setiqueue web admin interface without having the hassle to go through the login page.<br/>
  5.     <div class="helpboxDescLabels">Usage:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>setiq <<i>password</i>> [/server:<<i>serveraddress</i>> [/port:<<i>portnumber</i>>]] [/connect[:<<i>duration</i>>]] [/display:<<i>page</i>>]</td></tr>
  8.     </table>
  9.     <div class="helpboxDescLabels">Switches:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>/server:serveraddress</td><td> - </td><td>specify server IP address or name (127.0.0.1 by default)</td></tr>
  12.       <tr><td>/port:portnumber</td><td> - </td><td>specify port number (5517 by default)</td></tr>
  13.       <tr><td>/connect:duration</td><td> - </td><td>tell SetiQueue to connect to the Internet. You can specify one of the following durations (30 minutes by default):
  14.         <table class="helpboxDescTable">
  15.           <tr><td><b>0.5</b> or <b>30</b></td><td> - </td><td>30 minutes</td></tr>
  16.           <tr><td><b>1</b> or <b>60</b></td><td> - </td><td>1 hour</td></tr>
  17.           <tr><td><b>2</b> or <b>120</b></td><td> - </td><td>2 hours</td></tr>
  18.           <tr><td><b>4</b> or <b>240</b></td><td> - </td><td>4 hours</td></tr>
  19.         </table>
  20.       </td></tr>
  21.       <tr><td>/dislay:page</td><td> - </td><td>display specified page (without htm extension)</td></tr>
  22.     </table>
  23.     <div class="helpboxDescLabels">Examples:</div>
  24.     <table class="helpBoxDescTable">
  25.       <tr><td>setiq mypassword</td></tr>
  26.       <tr><td>setiq mypassword /server:localhost /port:6000 /connect:4 /display:logs</td></tr>
  27.     </table>
  28.     <div class="helpboxDescLabels" style="color: red">Security warning:<br/>
  29.     <table class="helpBoxDescTable">
  30.       <tr><td style="color: red">Be aware that your password will remain in DQSD's history.</td></tr>
  31.     </table>
  32.     </div>
  33.     <div class="helpboxDescLabels" style="color: red">Compatibility warning:<br/>
  34.     <table class="helpBoxDescTable">
  35.       <tr><td style="color: red">If you are using DQSD v3.0 or earlier and you specify an IP address for the serveraddress parameter, you will need to edit defer_tools.js and change<br/>
  36.         <nobr><span style="font-family: monospace; color: #000000">  var re_switch = /\/((\w+)(?::?(\w*)))\s*/;</span></nobr><br/>
  37.         to<br/>
  38.         <nobr><span style="font-family: monospace; color: #000000">  var re_switch = /\/((\w+)(?::?(\S*)))\s*/;</span></nobr></td></tr>
  39.     </table>
  40.     </div>
  41.    </description>
  42.   <category>Functions</category>
  43.   <link>http://www.setiqueue.org</link>
  44.   <contributor>MLL</contributor>
  45.  
  46.   <form name="setiqf"
  47.         method="post">
  48.     <input type="hidden" name="User"/>
  49.     <input type="hidden" name="Pass"/>
  50.   </form>
  51.  
  52.   <form name="setiqcf"
  53.         method="post">
  54.     <input type="hidden" name="Connect"/>
  55.     <!-- for future other options ?
  56.       <input type="hidden" name="StopService" value='Stop SetiQueue Service'>
  57.       <input type="hidden" name="Exit" value='Terminate Program'>
  58.     -->
  59.   </form>
  60.  
  61.   <form name="setiqlf"
  62.         method="get">
  63.   </form>
  64.  
  65.  
  66.   <script><![CDATA[
  67.     function setiq( q )
  68.     {
  69.       if( nullArgs( "setiq", q ) )
  70.         return false;
  71.       else
  72.       {
  73.         var switch_list = new Array( "server", "port", "connect", "display" );
  74.         var args = parseArgs( q, switch_list );
  75.         
  76.         var serveraddress="127.0.0.1";
  77.         if( !( typeof args.switch_val["server"] == "undefined" || args.switch_val["server"] == "" ) )
  78.         {
  79.           serveraddress=args.switch_val["server"];
  80.         }
  81.  
  82.         var portnumber="5517";
  83.         if( !( typeof args.switch_val["port"] == "undefined" || args.switch_val["port"] == "" ) )
  84.         {
  85.           portnumber=args.switch_val["port"];
  86.         }
  87.         
  88.  
  89.         if( !( typeof args.switch_val["connect"] == "undefined" ) )
  90.         {
  91.           var duration=args.switch_val["connect"];
  92.           switch( duration * 1 )
  93.           {
  94.             case 0: duration = "30 min"; break;
  95.             case .5:  duration = "30 min"; break;
  96.             case 30:  duration = "30 min"; break;
  97.             case 1:   duration = "1 hour"; break;
  98.             case 60:  duration = "1 hour"; break;
  99.             case 2:   duration = "2 hours"; break;
  100.             case 120: duration = "2 hour3"; break;
  101.             case 4:   duration = "4 hours"; break;
  102.             case 240: duration = "4 hours"; break;
  103.             case "": duration = "30 min"; break;
  104.             default:
  105.             {
  106.               nullArgs( "setiq", "?" );
  107.               return false;
  108.             }
  109.           }
  110.         }
  111.  
  112.         document.setiqf.action = "http://"+serveraddress+":"+portnumber+"/login.htm?";
  113.         document.setiqf.User.value="admin";
  114.         document.setiqf.Pass.value=args.q;
  115.         document.setiqf.target=DQSD_BROWSER_WINDOW_NAME + '_setiqf';
  116.         submitForm(document.setiqf, true);
  117.  
  118.         if( duration )
  119.         {
  120.           document.setiqcf.action = "http://"+serveraddress+":"+portnumber+"/connect.htm?";
  121.           document.setiqcf.Connect.value=duration;
  122.           document.setiqcf.target=document.setiqf.target;
  123.           setTimeout( "submitForm(document.setiqcf, true);", 250 );
  124.         }
  125.  
  126.         if( !( typeof args.switch_val["display"] == "undefined" || args.switch_val["display"] == "" ) )
  127.         {
  128.           //mmh... I use a form, but I'm sure it's overkill. How to change the location URL of the opened window?
  129.           document.setiqlf.action = "http://"+serveraddress+":"+portnumber+"/" + args.switch_val["display"] + ".htm";
  130.           document.setiqlf.target=document.setiqf.target;
  131.           setTimeout( "submitForm(document.setiqlf, true);", 250 );
  132.         }
  133.  
  134.         return true;
  135.       }
  136.     }
  137.   ]]></script>
  138.  
  139.   <copyright>
  140.     Copyright (c) 2002 David Bau
  141.     Distributed under the terms of the
  142.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  143.   </copyright>
  144. </search>
  145.